apiready = function() {
	$api.getUserInf(function(user) {

		var nickName = user.nickName;
		$("#nickName").val(nickName);
	});
};


function LoginVerify(pt) {


	switch (pt) {
		case 'order':
			{
				$api.mOpenWin("usercenterMyOrder", "group/my_order.html");
				break;
			}
		case 'payment':
			{
				$api.mOpenWin("../html/property/payment", "");
				break;
			}
		case 'bill':
			{
				$api.mOpenWin("/wx/property/bill", "");
				break;
			}
		case 'changepw':
			{
				$api.mOpenWin('changepw', "chanpw.html");
				break;
			}
		case 'repair':
			{
				$api.mOpenWin("/wx/property/repair/index", "");
				break;
			}
		case 'repairall':
			{
				$api.mOpenWin("/wx/property/repair/list?status=all", "");
				break;
			}
		case 'notice':
			{
				$api.mOpenWin("/wx/property/notice", "");
				break;
			}
		case 'advise':
			{
				$api.mOpenWin("/wx/property/advise", "");
				break;
			}
		case 'contact':
			{
				$api.mOpenWin("/wx/property/contact", "");
				break;
			}

		case 'profile':
			{
				$api.mOpenWin('propertyProfile', "property/profile.html");
				break;
			}
		case 'ownerinfo':
			{
				$api.mOpenWin('owninfo', "owninfo.html");
				break;
			}
		case 'tuichu':
			api.removePrefs({
			    key: 'userInf'
			});
			api.openWin({
			    name: 'main',
			    url: 'home.html'
			});
			break;
	}
}